package com.example.crm.service.impl;

import com.example.crm.entity.Role;
import com.example.crm.mapper.RoleMapper;
import com.example.crm.service.IRoleService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author zz
 * @since 2024-06-06
 */
@Service
public class RoleServiceImpl extends ServiceImpl<RoleMapper, Role> implements IRoleService {

    @Resource
    RoleMapper roleMapper;

    @Override
    public Role selectRolePermission(Long roleId) {
        return roleMapper.selectRolePermission(roleId);
    }

    @Override
    public boolean del(Long roleId) {
        return roleMapper.del(roleId);
    }
}
